#include<stdio.h>

void swap(int arr[],int size);

int main()
{
	int arr[10]={1,2,3,4,5,6,7,8,9,10};
	int i = 0;
	
	swap(arr,10);
	
	for(i = 0;i<10;i++)
	{
		printf("%d ",arr[i]);
	}
	printf("\n");
	
	return 0;
}
void swap(int arr[],int size)
{
	int i = 0,tmp = 0;
	for(i = 0;i < size/2;i++)
	{
		tmp = arr[i];
		arr[i]=arr[size - 1 - i];
		arr[size - 1 - i] = tmp;
	}
}
